import tornado.web

class NavModule(tornado.web.UIModule):
    def render(self, menus):
        return self.render_string("ui/nav.html", menus=menus)